package dao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Chapter entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "chapter", catalog = "assistedlearning")
public class Chapter implements java.io.Serializable {

    // Fields

    private String chapterid;
    private String courseid;
    private String name;
    private String structurechart;
    private String demand;

    // Constructors

    /** default constructor */
    public Chapter() {
    }

    /** minimal constructor */
    public Chapter(String chapterid, String courseid) {
	this.chapterid = chapterid;
	this.courseid = courseid;
    }

    /** full constructor */
    public Chapter(String chapterid, String courseid, String name,
	    String structurechart, String demand) {
	this.chapterid = chapterid;
	this.courseid = courseid;
	this.name = name;
	this.structurechart = structurechart;
	this.demand = demand;
    }

    // Property accessors
    @Id
    @Column(name = "chapterid", unique = true, nullable = false, length = 6)
    public String getChapterid() {
	return this.chapterid;
    }

    public void setChapterid(String chapterid) {
	this.chapterid = chapterid;
    }

    @Column(name = "courseid", nullable = false, length = 4)
    public String getCourseid() {
	return this.courseid;
    }

    public void setCourseid(String courseid) {
	this.courseid = courseid;
    }

    @Column(name = "name", length = 50)
    public String getName() {
	return this.name;
    }

    public void setName(String name) {
	this.name = name;
    }

    @Column(name = "structurechart", length = 120)
    public String getStructurechart() {
	return this.structurechart;
    }

    public void setStructurechart(String structurechart) {
	this.structurechart = structurechart;
    }

    @Column(name = "demand", length = 600)
    public String getDemand() {
	return this.demand;
    }

    public void setDemand(String demand) {
	this.demand = demand;
    }

}